package org.ling.xuan.dialog;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;
import org.jetbrains.annotations.Nullable;
import org.ling.xuan.pannel.SearchFilePanel;

import javax.swing.*;
import java.util.List;

public class FindFileInEditDialog extends DialogWrapper {
    private final SearchFilePanel searchFilePanel;
    
    public FindFileInEditDialog(@Nullable Project project, boolean canBeParent) {
        super(project, canBeParent);
        setTitle("Add Info");
        searchFilePanel = new SearchFilePanel();
        init();
    }

    @Override
    protected @Nullable JComponent createCenterPanel() {
        return searchFilePanel;
    }

    public List<String> getFileList() {
        return searchFilePanel.getFileList();
    }
}
